package sn.hn.demo.level;

import sn.hn.demo.unit.NumberText;
import android.graphics.Bitmap;

public class Level {
	public static final int MAX_LEVEL = 20;
	private int[] lv_fish = {5,7,9,11,13,15,15,15,15,15,15,15,17,17,17,17,20,20,20,20};
	private int[] lv_score = {500,1000,1200,1500,1700,2000,2200,2400,2800,3500,4000,4500,5200,6000,7000,7500,8000,8700,9200,10000};
//	private int[] lv_score = {100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100};
	public int level;
	public Bitmap mBitmapLevel;
	
	public Level()
	{
		this.level = 0;
		getBitmapLevel();
	}
	
	public int getLevel_score() {
		return lv_score[level % MAX_LEVEL];
	}

	public int getLv_fish() {
		return lv_fish[level % MAX_LEVEL];
	}
	
	public void getBitmapLevel()
	{
		switch (level%10) {
		case 0:
			mBitmapLevel = NumberText.one;
			break;
		case 1:
			mBitmapLevel = NumberText.two;
			break;
		case 2:
			mBitmapLevel = NumberText.three;
			break;
		case 3:
			mBitmapLevel = NumberText.four;
			break;
		case 4:
			mBitmapLevel = NumberText.five;
			break;
		case 5:
			mBitmapLevel = NumberText.six;
			break;
		case 6:
			mBitmapLevel = NumberText.seven;
			break;
		case 7:
			mBitmapLevel = NumberText.eight;
			break;
		case 8:
			mBitmapLevel = NumberText.nine;
			break;
		default:
			mBitmapLevel = NumberText.one;
			break;
		}
	}
	
	public Bitmap getBitmapLevel(int lv)
	{
		Bitmap mLV = null;
		switch (lv) {
		case 0:
			mLV = NumberText.zero;
			break;
		case 1:
			mLV = NumberText.one;
			break;
		case 2:
			mLV = NumberText.two;
			break;
		case 3:
			mLV = NumberText.three;
			break;
		case 4:
			mLV = NumberText.four;
			break;
		case 5:
			mLV = NumberText.five;
			break;
		case 6:
			mLV = NumberText.six;
			break;
		case 7:
			mLV = NumberText.seven;
			break;
		case 8:
			mLV = NumberText.eight;
			break;
		case 9:
			mLV = NumberText.nine;
			break;
		default:
			mLV = NumberText.zero;
			break;
		}
		return mLV;
	}
	
}
